#include "Date.h"

void testDate()
{
	Date day01(2025, 1, 18);
	Date day02(2025, 1, 17);

	day02 = day01 + 25;
	/*day02 = day01 - 15;*/
	day01.print();
	day02 -= 2;
	day02.print();

	day02 -= 25;
	day02.print();

	day02 -= 100;
	day02.print();

	day02 -= 200;
	day02.print();

	day02 -= 100;
	day02.print();

	day01 -= 102;
	day01.print();
}

void testDate1()
{
	Date day01(2025, 1, 18);
	Date day02(2025, 1, 17);

	day02 = ++day01;
	day01.print();
	day02.print();
	day02 = --day01;
	day01.print();
	day02.print();
	day02 = day01--;
	day01.print();
	day02.print();
	day02 = day01++;
	day01.print();
	day02.print();
}

void testDate2()
{
	Date day01(2025, 1, 18);
	Date day02(2024, 7, 15);

	cout << day02 - day01 << endl;
}

void testDate3()
{
	Date day01(2025, 1, 19);
	day01 -= -2;
	cout << day01;

	Date day02(2025, 1, 19);
	day02 -= -50;
	cout << day02;

	Date day03(2025, 1, 19);
	day03 -= -100;
	cout << day03;

	Date day04(2025, 1, 19);
	day04 -= -1000;
	cout << day04;

	const Date day(2024);
	day.print();
}

void testDate4()
{
	Date day01(2025, 1, 19);
	Date day02;
	cin >> day02;
	cout << day02;
	cin >> day02;
	cout << day02;
}
int main()
{
	testDate4();

	return 0;
}